package org.myspringframework.aop.framework.adapter;

import org.aopalliance.aop.Advice;
import org.aopalliance.intercept.MethodInterceptor;
import org.myspringframework.aop.Advisor;

//切面适配器，负责将advisor切面中的advice通知(Before,AfterReturning)统一转换为methodInterceptor环绕通知
//在代理对象执行方法时发生转换
public interface AdvisorAdapter {
    //是否需要转换
    boolean supportsAdvice(Advice advice);

    //进行转换
    MethodInterceptor getInterceptor(Advisor advisor);
}
